package com.woniu.controller;

import com.woniu.entity.User;
import com.woniu.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author xiaoqi
 * @time 2021/01/03 18:42:19
 */
@Controller
@RequestMapping("user")
public class UserController {
    @Autowired
    private IUserService service;

    @RequestMapping("save")
    public String save(User user){
        System.out.println("UserController.save");
        service.saveTwo(user,user);
        return null;
    }

}
